package com.yuanchu.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageResult;
import com.yuanchu.store.dto.EditAddressDto;
import com.yuanchu.store.dto.QueryPageParams;
import com.yuanchu.store.entity.YoshopStoreAddressEntity;

import java.util.List;

/**
 * 商家地址记录表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:21
 */
public interface YoshopStoreAddressService extends IService<YoshopStoreAddressEntity> {



    /**
     * 查询商家地址列表
     * @param params
     * @param storeId
     * @return
     */
    PageResult<YoshopStoreAddressEntity> queryStoreAddress(QueryPageParams params, Integer storeId);

    /**
     * 添加商家地址
     * @param form
     * @param storeId
     * @return
     */
    boolean addStoreAddress(EditAddressDto form, Integer storeId);

    /**
     * 编辑商家地址
     * @param form
     * @param storeId
     * @return
     */
    boolean editStoreAddress(EditAddressDto form, Integer storeId);

    /**
     * 删除商家地址
     * @param form
     * @param storeId
     * @return
     */
    boolean deleteStoreAddress(EditAddressDto form, Integer storeId);

    /**
     * 查询商家退货地址列表
     * @param type
     * @param storeId
     * @return
     */
    List<YoshopStoreAddressEntity> queryStoreAddressAll(Integer type, Integer storeId);
}

